package com.imooc.security.core.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Zqm
 * @Title: ImageCodeProperties
 * @ProjectName imooc-security
 * @date 2018/12/20
 * 图片配置类
 */
@Component
@ConfigurationProperties(prefix = "imooc.security.code.sms")
public class SmsCodeProperties {

    private int length=6;
    /**
     * 默认失效时间 60s
     */
    private int expireIn=60;

    private String url;


    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getExpireIn() {
        return expireIn;
    }

    public void setExpireIn(int expireIn) {
        this.expireIn = expireIn;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
